﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DebugManager : MonoBehaviour {

	
	void Update () {
	    if (Input.GetKeyDown(KeyCode.K))
	    {
            Debug.Log("KKK");
            MapData.Instance.Reset();
	        MapData.Instance.Init();
	        string result = string.Empty;
	        for (int i = 0; i < Const.MapHeight; i++)
	        {
	            for (int j = 0; j < Const.MapWidth; j++)
	            {
	                result += (int)MapData.Instance.Map[i, j].Type;
	            }
	            result += "\n";
	        }
            Debug.Log(result);
	    }
	}
}
